import { Table } from 'antd'
import useTable from '../hooks/table/useTable'

const TableChart = ({ widgetId }) => {
  const { columns, dataSource, scroll } = useTable(widgetId)

  return <Table bordered size="middle" columns={columns} dataSource={dataSource} scroll={scroll} />
}

export default TableChart
